﻿using System.Collections;

namespace 迭代器模式_IEnumerable
{
   public  class ConcreteList:IEnumerable
    {
        string[] _list;

        public ConcreteList()
        {
            _list = new[] { "1", "2", "3", "4", "5" };
        }
        
       public IEnumerator GetEnumerator()
       {
           return _list.GetEnumerator();
       }
    }
}
